#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
/*打印菱形*/

int main()
{
	int i, j;
	for (i = 0; i < 7; i++)
	{
		for (j = 0; j < 7-i; j++)
		{
			printf(" ");
		}
	
		for (j = 1; j <= 2*i+1; j++)
		{
			printf("*");
		}
		printf("\n");
	}
	for (i = 1; i <= 7; i++)
	{
		for (j = 0; j <= i; j++)
		{
			printf(" ");
		}

		for (j = 0; j <= 2*(7-i)-2; j++)
		{
			printf("*");
		}
		printf("\n");
	}
	return 0;
}